@extends('layout')

@section('content')
    <link rel="stylesheet" href="{{asset('css/about.css')}}">
    <link rel="stylesheet" href="{{asset('css/order.css')}}">
    <div class="container transaction-content">
        <div class="content-row">
            <div class="row info">
                <div class="col-sm-8">
                    <div class="box">
                        <div class="title">
                            国际干散货市场 - 航运新闻资讯
                        </div>
                        <div class="echat">
                            <div class="bbw-table border-radius w-100">
                                <ul class="table-content">
                                    @foreach($news as $item)
                                        <li>
                                            <a href="/news/{{$item -> id}}" class="table-item ">
                                                <div>
                                                    <i class="fa fa-caret-right"></i>
                                                    <p>{{$item -> title}}</p>
                                                </div>
                                                <p class="item-date">{{$item -> creat_at}}</p>
                                            </a>
                                        </li>
                                    @endforeach
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="box">
                        <div class="title">
                            班期信息
                        </div>
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th scope="col">编号</th>
                                <th scope="col">装卸港/航线</th>
                                <th scope="col">班期/频率</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($schedule as $item)
                                <tr>
                                    <th scope="row">{{$item->id}}</th>
                                    <td>{{$item->port}}</td>
                                    <td>{{$item->rate}}</td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>


        <div class="info">
            <div class="">
                <div class="part-title-box">
                    <div class="part-title">散货货盘</div>
                </div>
                <div class="box">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th scope="col">编号</th>
                            <th scope="col">货物名称</th>
                            <th scope="col">货量</th>
                            <th scope="col">装港</th>
                            <th scope="col">卸港</th>
                            <th scope="col">LAYCAN</th>
                        </tr>
                        </thead>
                        <tbody>
                        @foreach($goods as $item)
                            <tr>
                                <th scope="row">{{$item->id}}</th>
                                <td>{{$item->good_name}}</td>
                                <td>{{$item->total}}</td>
                                <td>{{$item->laycan}}</td>
                                <td>{{$item->start_port}}</td>
                                <td>{{$item->end_port}}</td>
                                {{--<td>{{$item->creat_at}}</td>--}}
                            </tr>
                        @endforeach

                        </tbody>
                    </table>
                </div>
            </div>

        </div>
    </div>
@endsection
